
{extend name='layout' /}
{block name='title'}
所有文章标签 | Sinalma博客
{/block}
{block name="subtitle"}Tags{/block}
{block name="subtitleslug"}tag{/block}

{block name='content'}

<article class="post preview" itemscope="" itemtype="http://schema.org/BlogPosting">
    <h1 class="post-title" itemprop="name headline">Tags</h1>
    <div class="post-content" itemprop="articleBody">
        <ul class="tag-list"  id="tag-list">
        </ul>
    </div>
</article>

<script type="text/javascript">
    // ajax 实现无刷新分页
    function showtags(url){
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function (){
            if(xhr.readyState == 4){
                $main_con = document.getElementById('tag-list');
                loadSuccess();
                $main_con.innerHTML = xhr.responseText;
            }
        }
        xhr.open('get',url,true);
        xhr.send(null);
    }
    $(function(){
        showtags("__HTP____URL__/index/index/getTags");
        // 暂时在此做修改，容器用的和文章缩略页面容器，post-content=75px；
        $('.post-content').css('max-height','10000px');
    });
</script>
{/block}


